package com.tommy.financial.config.controller;

import com.powater.common.util.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Package Name: com.tommy.financial.config.controller
 * @Description: TODO
 * @Author Tommy
 * @Date 2019.09.27 23:28
 * @Modify Who      When     What
 * ---------- ----------- -------------
 */
@Api(value = "登录Api", description = "登录Api", tags = {"一"})
@RestController
public class LoginController {

    @ApiOperation(value = "@登录系统", notes = "暂无",httpMethod = "POST")
    @ApiImplicitParams({
            @ApiImplicitParam(name="userName", value="用户名", required=true, paramType="query"),
            @ApiImplicitParam(name="password", value="密码", required=true, paramType="query"),
    })
    @PostMapping("/login")
    public CommonResult login(@RequestParam("userName") String userName,
                              @RequestParam("password") String password,
                              HttpServletRequest request) {

        return null;
    }


    @ApiOperation(value = "@注銷登录", notes = "暂无",httpMethod = "POST")
    @PostMapping("/logout")
    public CommonResult logout(HttpServletRequest request) {
        return null;
    }
}
